<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<button style="margin:5px;"type="button" class="btn btn-green" data-url="<%=request.getContextPath()%>/t/module/edit.do?code=${code}" data-toggle="dialog" data-width="1000" data-height="600" data-id="dialog-mask" data-mask="true"><i class="fa fa-plus"></i>&nbsp;新增数据</button>&nbsp;&nbsp;
<div class="bjui-pageHeader" style="padding:0px;margin:0px;"></div>
<table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
   	<thead>
   	<tr>
		<th data-order-field="id" >标识</th>
		<th data-order-field="modCode">模块编号</th>
		<th data-order-field="modName">模块名称</th>
		<th data-order-field="parentCode">上级编号</th>
		<th data-order-field="level">模块层级</th>
		<th data-order-field="modUrl">访问地址</th>
		<th>操作</th>
   	</tr>
   	</thead>
   	<tbody>
    	<c:forEach items="${list}" var="list">
    	<tr>
			<td>${list.id}</td>
			<td>${list.modCode}</td>
			<td>${list.modName}</td>
			<td>${list.parentCode}</td>
			<td>${list.modLevel}</td>
			<td>${list.modUrl}</td>
    		<td>
    			<a href="<%=request.getContextPath()%>/t/module/edit.do?id=${list.id}" class="btn btn-default" data-toggle="dialog" data-width="1000" data-height="600" data-id="dialog-mask" data-mask="true">编辑</a>
    			<a href="<%=request.getContextPath()%>/t/module/delete.do?id=${list.id}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除吗？">删除</a>
    		</td>
    	</tr>
    	</c:forEach>
   	</tbody>
</table>